from examples.recorder_utils import run_data_recorder
from zvt import init_log
from zvt.domain import (
    Stock,
    StockDetail,
    FinanceFactor,
    BalanceSheet,
    IncomeStatement,
    CashFlowStatement,
)
from . utils import set_downloaders

data_provider = "eastmoney"
entity_provider = "eastmoney"
sleeping_time = 0.1

def record_downloader_1():
    run_data_recorder(domain=Stock, data_provider=data_provider, sleeping_time=sleeping_time)
def record_downloader_2():
    run_data_recorder(domain=StockDetail, data_provider=data_provider, sleeping_time=sleeping_time)
def record_downloader_3():    
    run_data_recorder(domain=FinanceFactor, data_provider=data_provider, entity_provider=entity_provider, day_data=True, sleeping_time=sleeping_time)
def record_downloader_4():    
    run_data_recorder(domain=BalanceSheet, data_provider=data_provider, entity_provider=entity_provider, day_data=True, sleeping_time=sleeping_time)
def record_downloader_5():    
    run_data_recorder(
        domain=IncomeStatement, data_provider=data_provider, entity_provider=entity_provider, day_data=True, sleeping_time=sleeping_time
    )
def record_downloader_6():    
    run_data_recorder(
        domain=CashFlowStatement, data_provider=data_provider, entity_provider=entity_provider, day_data=True
    )

set_downloaders(globals())